package com.epam.qanda.db.service;

import com.epam.qanda.db.dao.impl.QuestionDao;

public class QuestionService {

	public <T> void create(T element) {
		new QuestionDao().create(element);
	}

	public <T> T read(Integer id) {
		return new QuestionDao().read(id);
	}

	public void delete(Integer id) {
		new QuestionDao().delete(id);
	}

	public <T> void update(T element) {
		new QuestionDao().update(element);

	}

	public <T> void updateLikes(T element) {
		new QuestionDao().updateLikes(element);
	}
}
